package com.lucky.back.mapper;

import com.lucky.back.pojo.entity.Productcategory;
import com.lucky.back.pojo.vo.ProductCategoryListItemVO;
import com.lucky.back.pojo.vo.ProductCategoryStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductCategoryMapper {
    int insert(Productcategory productcategory);

    int deleteById(Long id);

    int count();

    ProductCategoryStandardVO getStandardById(Long id);

    List<ProductCategoryListItemVO> list();

    /**
     * 批量删除
     * @param list
     * @return
     */
    int deleteByIds(List<Long> list);

    int insertBatch(List<Productcategory> productcategoryList);

    int updateById(Productcategory productcategory);

    List<Long> supIdList();

    /**
     *
     * @param name
     * @return
     */
    int countByName(String name);
}
